package com.changpay.zywy.mvp.model


import com.changpay.zywy.base.BaseModel
import com.changpay.zywy.http.RetrofitHelper
import com.changpay.zywy.bean.*
import com.changpay.zywy.mvp.contract.ApplyDetailContract
import io.reactivex.Observable

/**
 * Created by chenxz on 2018/5/27.
 */
class ApplyDetailModel : BaseModel(), ApplyDetailContract.Model {
    override fun getAllocationInfo(map: MutableMap<String, String>): Observable<HttpResult<ApplyDetailBean>> {

        return RetrofitHelper.service.getAllocationInfo(map)
    }

    override fun getSelfMachineInfo(map: MutableMap<String, String>): Observable<HttpResult<SelfMachineDetailBean>> {
        return RetrofitHelper.service.getSelfMachineInfo(map)
    }

    override fun getCardChangeInfo(map: MutableMap<String, String>): Observable<HttpResult<CardChangeDetailBean>> {
        return RetrofitHelper.service.getCardChangeInfo(map)
    }



}